const AUTH_URL = ["/api/city"];

module.exports = async function(ctx, next) {
    let openid = ctx.header.openid;
    let session_key = ctx.header.session_key;

    try {
        if (1 === 1) {
            console.log("通过");
            await next();
        } else {
            ctx.throw(401, "登陆失效");
        }
    } catch (e) {
        ctx.body = {
            code: e.status,
            message: e.message
        };
        ctx.app.emit("error", e, ctx);
    }
};
